<?php

//файл с базовыми настройками
include(realpath(dirname(__FILE__).'/../application/init.php'));

//global config
$application = new Zend_Application(
    APPLICATION_ENV,
    CONFIG_PATH
);

if (!defined('CRON_JOB') || !CRON_JOB) {
	$application->bootstrap()->run();
}
else {
    //$application->bootstrap();
	$application->bootstrap('Settings');
	$application->bootstrap('DbBootstrap');
	$application->bootstrap('ControllerBootstrap');
	$application->bootstrap('AccessBootstrap');
	$application->bootstrap('ViewBootstrap');
	$application->bootstrap('AuthBootstrap');
}

